package com.sayice.design.lab2_2;

import com.sayice.design.lab2_2.factory.ConnectionFactory;
import com.sayice.design.util.XmlParse;
import org.xml.sax.SAXException;

import java.io.IOException;

/**
 * @author shubing
 */
public class Client {
    public static void main(String[] args) throws IOException, SAXException {
        ConnectionFactory factory = (ConnectionFactory) new XmlParse("connectionConfig.xml")
                .objectOfTag("connectionFactory");
        factory.getConnection();
    }
}
